import request from '@/utils/request'

// 统计商机数量、待续费数据
export function statisticsProjectNumberAndTodoAndRenewed() {
    return request({
      url: '/crm/statistics/statisticsProjectNumberAndTodoAndRenewed',
      method: 'post'
    })
}
  
// 统计业绩数据
export function statisticsPerformance(data) {
    return request({
      url: '/crm/statistics/statisticsPerformance',
      method: 'post',
      data: data
    })
}
  
// 统计实际支出数据
export function statisticsActualSpending(data) {
    return request({
      url: '/crm/statistics/statisticsActualSpending',
      method: 'post',
      data
    })
}
  
// 统计待办数据数量
export function statisticsToDo(data) {
    return request({
      url: '/crm/statistics/statisticsToDo',
      method: 'post',
      data
    })
}
  
// 销售额排行
export function statisticsSales(data) {
    return request({
      url: '/crm/statistics/statisticsSales',
      method: 'post',
      data
    })
}

// 成交次数客户排行
export function statisticsTransactionsCount(data) {
    return request({
      url: '/crm/statistics/statisticsTransactionsCount',
      method: 'post',
      data
    })
}



// 统计商机数量、待续费列表数据
export function getOrderAndIsRenewalList(data) {
  return request({
    url: '/crm/statistics/getOrderAndIsRenewalList',
    method: 'get',
    params: data
  })
}


// 统计合同列表
export function getContractMoneySumList(data) {
  return request({
    url: '/crm/statistics/getContractMoneySumList',
    method: 'get',
    params: data
  })
}


// 统计90，60，30 数据列表
export function getPerformanceList(data) {
  return request({
    url: '/crm/statistics/getPerformanceList',
    method: 'get',
    params: data
  })
}


// 付款数据
export function getPayAmtList(data) {
  return request({
    url: '/crm/statistics/getPayAmtList',
    method: 'get',
    params: data
  })
}

// 收款数据
export function getCollectionAmtList(data) {
  return request({
    url: '/crm/statistics/getCollectionAmtList',
    method: 'get',
    params: data
  })
}